package actionScripts
{
	import actionScripts.vo.LoggedInUser;
	import actionScripts.vo.UserDetail;
	
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	import mx.collections.ArrayCollection;

	[Bindable]
	public class AdminSetupModelLocator extends EventDispatcher
	{
		//---------------------
		// PRIVATE VARIABLES
		//---------------------
		private static var instance : AdminSetupModelLocator;
		
		public var applicationStage :AdminSetup;
		public var userList			:ArrayCollection;
		public var usrDetail        :UserDetail = new UserDetail();
		/**
		 * CONSTRUCTOR
		 */
		public function AdminSetupModelLocator() {
			
			if ( instance != null ) {
				throw new Error( "This is a singleton class. Can not create multiple instances." );
			}
			instance = this;
			
		}
		
		/**
		 * Returns the Singlton Instance
		 */
		public static function getInstance() : AdminSetupModelLocator {
			
			if ( instance == null ) {
				instance = new AdminSetupModelLocator();
			}
			return instance;
			
		}
	}
}